import {Pipe, PipeTransform} from '@angular/core';

/**
 * Generated class for the EmptyToShowPipe pipe.
 *
 * See https://angular.io/api/core/Pipe for more info on Angular Pipes.
 */
@Pipe({
  name: 'emptyToShow',
})
export class EmptyToShowPipe implements PipeTransform {
  /**
   * Takes a value and makes it lowercase.
   */
  transform(value: string, defaultShow = '') {
    if (value === '' || value === undefined || value === null) {
      return defaultShow
    } else {
      return value
    }
  }
}
